<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>component-3</title>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
  <h1>component-3</h1>
  <hr>
  <div id="app">
   <adam></adam>
  </div>
  
  <script type="text/javascript">
  var city = {
    template:`<div style="color:red;">Henan of China!</div>`
  }
  var adamComponent = {
    template:`<div>
    <p>Adam is from </p>
    <city></city>
    </div>`,
    components:{
      "city":city
    }
  }
  
  var app = new Vue({
    el:'#app',
    components:{
      "adam":adamComponent
    }
    
  })
  
  </script>
</body>
</html>